@extends('web.common.main2')
@section('headmeta')
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no">
@endsection

@section('css')
<link rel="stylesheet" href="{{env('SOURCE_PATH')}}css/v3_base.css">
    <link rel="stylesheet" href="{{env('SOURCE_PATH')}}css/v3_style.css">
<link rel="stylesheet" href="{{env('SOURCE_PATH')}}css/jquery.page.css">
@endsection


@section('container')
<div class="v3-contain">
    <div class="v3-list j_tab">
        @include('web.common.bread_menu_tab')
        <div class="v3-list_left">
            <div data-con>
                @if($tabMenuMsg)
                    <div class="about">
                        {{$tabMenuMsg}}
                    </div>
                @endif
                @if($dataList)
                    @if($filter_type == 1)
                         <ul class="v3-list_items">
                                <li>
                                    <table class="table-ellipsis">
                                        <tr>
                                            <th width="20%">发布来源</th>
                                            <th width="20%">发布日期</th>
                                            <th>名称</th>
                                        </tr>
                                        <tbody class="j_dataList">
                                            @include('web.tanwin_lib.list.image_title_subtitle_desc')
                                        </tbody>
                                    </table>
                                </li>
                        </ul>
                    @elseif($filter_type == 2)
                        <ul class="v3-list_items j_dataList">
                            @include('web.tanwin_lib.list.image_title_param_desc')
                        </ul>
                    @elseif($filter_type == 3)
                        <ul class="v3-list_items">
                            <li>
                                <table class="table-ellipsis">
                                    <tr>
                                        <th width="20%">相关行业</th>
                                        <th width="20%">发布日期</th>
                                        <th>名称</th>
                                    </tr>
                                    <tbody class="j_dataList">
                                        @include('web.tanwin_lib.list.type_3')
                                    </tbody>
                                </table>
                            </li>
                        </ul>
                    @endif
                <input class="j_filterType" type="hidden" value="{{$filter_type}}">
                <input id="j_pageNo" type="hidden" value="1" data-tot="{{$pageCount}}" data-url="/tanwin_lib">
                @endif
            </div>
            @if($pageCount>1)
                <div id="page"></div>
            @endif
        </div>
        <div class="v3-list_right">
            @include('web.common.filter_area')
        </div>
    </div>

</div>
@endsection

@section('script')

<script type="text/javascript" src="{{env('SOURCE_PATH')}}js/jquery.page.js"></script>



<script type="text/javascript">


    $(function(){
        $("#page").Page({
              totalPages: {{$pageCount}},//分页总数
              liNums: 7,//分页的数字按钮数(建议取奇数)
              activeClass: 'activP', //active 类样式定义
              callBack : function(page){
                    //console.log(page)
                    lastPostFunc2(page);
              }
          });

        $(".j_filterSubmit2").on('click',function(){
            lastPostFunc2(0);

            $("#page").Page({
              totalPages: $("#ajaxPageCount").val(),//分页总数
              liNums: 7,//分页的数字按钮数(建议取奇数)
              activeClass: 'activP', //active 类样式定义
              callBack : function(page){
                    //console.log(page)
                    lastPostFunc2(page);
              }
          });

        });
    })

</script>

@endsection
